<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>活动管理--新增活动</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link rel="stylesheet" type="text/css" href="/css/daterangepicker.css" />

    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css" />
    <link rel="stylesheet" href="/css/input_tags.css"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css" />
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <link rel="stylesheet" href="/js/need/verfont.css" />
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>
    <link rel="stylesheet" href="/css/skin.css"/>
    <!-- css -->
    <link rel="stylesheet" href="/css/productManager/addProductActivity.css" />
</head>
<body>
<div class="container-fluid p-t-15">
    <div class="row">
        <div class="col-sm-12">
            <div class="card">
                <div class="card-header">
                    <h1>新增活动</h1>
                </div>
                <div class="card-body">
                    <form class="well form-well" autocomplete="off">
                        <div class="row">
                            <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                <label class="control-label label-required" for="productActivityName">活动名称</label>
                                <div class="form-content">
                                    <input type="text" id="productActivityName" class="form-control" placeholder="请输入活动名称">
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                <label class="control-label" for="activeStatus">活动状态</label>
                                <div class="form-content">
                                    <input type="text" value="上架" id="activeStatus" disabled class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                <label class="control-label label-required" for="activityPeriodValidity">起止时间</label>
                                <div class="form-content">
                                    <input type="text" id="activityPeriodValidity" class="form-control" placeholder="请选择起止时间" autocomplete="off">
                                    <!--<input class="form-control js-datetimepicker"
                                    type="text" id="activityPeriodValidityStart" name="add_time" placeholder="请选择"
                                    value="" data-side-by-side="true" data-locale="zh-cn" data-format="YYYY-MM-DD HH:mm">
                                    <input class="form-control js-datetimepicker" type="text" id="activityPeriodValidityEnd"
                                    name="add_time" placeholder="请选择" value="" data-side-by-side="true" data-locale="zh-cn" data-format="YYYY-MM-DD HH:mm">-->
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                <label class="control-label label-required" for="activityPriceRangeStart">价格区间</label>
                                <div class="input-group">
                                    <input type="text" id="activityPriceRangeStart" class="form-control" placeholder="请输入起始价" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,4})?).*$/g, '$1')">
                                    <span class="input-group-addon">至</span>
                                    <input type="text" id="activityPriceRangeEnd" class="form-control" placeholder="请输入截止价" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,4})?).*$/g, '$1')">
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                <label class="control-label label-required" for="activityPrice">活动价</label>
                                <div class="form-content">
                                    <input type="text" class="form-control" id="activityPrice" placeholder="请输入活动价" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,4})?).*$/g, '$1')">
                                </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                <label class="control-label label-required" for="exchangeMethod">兑换方式</label>
                                <div class="form-content">
                                    <select class="form-control" id="exchangeMethod" type="text" title="请选择兑换方式" data-live-search="true">
                                        <option value="1">电子卡</option>
                                        <option value="2">兑换码</option>
                                        <option value="3">学习码</option>
                                        <option value="4">充值码</option>
                                        <option value="5">税法直通车学习卡</option>
                                        <option value="6">其他</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </form>
                    <div class="well form-well product-table">
                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <h5><i class="mdi mdi-view-headline"></i>产品列表</h5>
                                <table id="productList"></table>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                                <h5><i class="mdi mdi-playlist-check"></i>已选产品列表</h5>
                                <table id="selectedList"></table>
                            </div>
                        </div>
                    </div>
                    <div class="form-actions">
                        <button class="btn btn-primary btn-label" type="button" onclick="addProductActivity()"><label><i class="mdi mdi-check"></i></label>提交</button>
                        <div class="btn btn-default" onclick="cancelProductActivity()">重置</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script type="text/javascript" src="/js/crm/common/dataRangePicker.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<script src="/js/crm/activityManager/addProductActivity.js"></script>
<!-- 通用js -->
<script src="/js/crm/common/common.js"></script>
</html>